package com.whfc.iot.dust.processor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import static com.whfc.dust.constant.DustConstant.UP_CMD_0X03;

@Component
public class DustUpMsgProcessorFactory {

    @Autowired
    private DustUpMsgProcessor0x03 dustUpMsgProcessor0x03;

    public DustUpMsgProcessor getMsgProcessor(int cmd) {
        DustUpMsgProcessor processor = null;
        switch (cmd) {
            case UP_CMD_0X03:
                processor = dustUpMsgProcessor0x03;
                break;
            default:
                break;
        }
        return processor;
    }
}
